<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/validate.jsp"%>
<%@ include file="../function.jsp"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看医院简介</title>
    <link  href="/images/favicon.ico?cache=<%=Math.random()%>" rel="shortcut icon" type="image/x-icon">
    <link rel="stylesheet" href="/css/public.css?cache=<%=Math.random()%>">
    <link rel="stylesheet" href="/css/messages_intro.css?cache=<%=Math.random()%>">
    <link rel="stylesheet" href="/css/sweetalert.css?cache=<%=Math.random()%>" >
    <link rel="stylesheet" href="/skin/${user.skin}/css/left_menu.css?cache=<%=Math.random()%>"/>
    <script src="/js/jquery-1.9.1.min.js"></script>
</head>
<body>
<%@ include file="../../header.jsp"%>
    <!--内容-->
    <div class="containerone">
<%@ include file="../../left_menu.jsp"%>
    <!--右边内容-->

<div class="right_cont">

<div class="message_right_cont_container" id="message_right_cont_container">
 <!--手机上的内容-->
                   <div class="phone-container">
                       <div class="phone-scr">
                           <div class="top-sts"></div>
                           <div class="top-tlt clearfix">
                               <label>&lt;&nbsp;返回</label>
                               <label class="mar-l">医院介绍</label>
                               <label>...</label>
                           </div>
                           <div class="phone-cont-scr">
                               <div class="mb tc">
                                   <img class="hos-bg" :src="detail.head_image">
                               </div>
                               <ul class="hos-info mb">
                                   <div class="bd-b" v-html="detail.name">name</div>
                                   <div class="bd-b"  ><span class="ui-dot"></span><span v-html="detail.level"></span></div>
                                   <div class="bd-b bd-n">
                                       <span class="bd_img"></span><span  v-html="detail.phone"></span>
                                       <div class="clearfix"></div>
                                       <div class="ui-link"><a >拨打电话</a></div>
                                       <div class="clearfix"></div>
                                   </div>
                                   <div class="bd-b bd-n">
                                       <span class="bd_img2"></span><span v-html="detail.address"></span>
                                       <div class="clearfix"></div>
                                       <div class="ui-link"><a>查看导航</a></div>
                                       <div class="clearfix"></div>
                                     </div>
                               </ul>
                               <div class="hos-desc-container">
                                   <div class="ui-c-gray breakword">&nbsp;&nbsp;&nbsp;&nbsp;<span v-html="decode(detail.introduction)"></span><br></div>
                               </div>
                           </div>
                       </div>
                   </div>
<!--右边框里的内容-->
                  <div class="hos-desc-detail bd-all">
                      <p class="hos-desc-detail——tlt">医院介绍</p>
                      <div class="hos-desc-detail——con">&nbsp;&nbsp;&nbsp;&nbsp; <span v-html="decode(detail.introduction)"></span><br></div>
                      <a class="hos-desc-detail-edit_a"><div class="hos-desc-detail-edit" @click="edit()">编辑医院信息</div></a>
                  </div>
    <div class="clearfix"></div>
</div>
</div>
<script src="/js/sweetalert-dev.js"></script>
<script>
    new Vue({
    el: "#message_right_cont_container",
    data: {
    detail: [],
    },
    methods: {
        edit: function() {
        locationHerf("edit");
        },
    decode: function(i) {
    return decodeURI(i);
    },
    },
    ready: function() {
    var self=this
        $.ajax({
        type: 'POST',
        url: "see.jsp",
        data:{
            act:'show_hospital',
            hospital: "${user.hospital}",
        },
        success: function(res) {
            console.log(res);
        res = JSON.parse(res);
        if (res.errcode == 0) {
         self.detail = res.data;
        } else {
        swal(res.errmsg);
        }
        }.bind(this),
        });
    }
    });
</script>

</body>
</html>
